package com.rockcent.mall.lib.domain;

import com.rockcent.common.domain.IDEntityMall;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Created by zhangjh on 2016/10/26.
 */
@Entity
@Table(name = "channel_product")
@DynamicInsert(value = true)
@DynamicUpdate(value = true)
public class ChannelProduct extends IDEntityMall {

    @Column(columnDefinition = "bigint(20) comment '产品ID'")
    private Long productId;

    @Column(columnDefinition = "varchar(255) comment '产品名称'")
    private String productName;

    @Column(columnDefinition = "bigint(20) comment '渠道ID'")
    private Long channelId;

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public Long getChannelId() {
        return channelId;
    }

    public void setChannelId(Long channelId) {
        this.channelId = channelId;
    }

    @Override
    public String toString() {
        return "ChannelProduct{" +
                "productId=" + productId +
                ", productName='" + productName + '\'' +
                ", channelId=" + channelId +
                '}';
    }
}
